<template>
  <div>
    <el-card class="box-card">
      <el-form inline>
        <el-input
          style="width: 15%"
          size="small"
          placeholder="请输入评论内容"
          v-model="query.list"
          clearable
        ></el-input>
        <el-select v-model="value" clearable placeholder="反馈状态" style="width: 10%" size="small">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
          </el-option>
        </el-select>

        <el-button type="primary" icon="el-icon-search" size="small">查找</el-button>
      </el-form>
      <el-table
        ref="multipleTable"
        :data="tableData"
        tooltip-effect="dark"
        style="width: 100%"
        @selection-change="handleSelectionChange"
      >
        <el-table-column type="selection" width="55"> </el-table-column>
        <el-table-column label="序号" width="120">
          <template slot-scope="scope">{{ scope.row.date }}</template>
        </el-table-column>
        <el-table-column prop="name" label="反馈人" v-slot="prop" width="120">
          <el-button size="mini" type="primary" plain @click="handleDelete(prop.$index, prop.row)"
            >Streamlet</el-button
          >
        </el-table-column>
        <el-table-column prop="name" label="标题" width="120"> </el-table-column>
        <el-table-column prop="name" label="反馈状态" width="120" v-slot="prop">
          <el-button size="mini" type="warning" plain @click="handleDelete(prop.$index, prop.row)"
            >已开启</el-button
          >
        </el-table-column>
        <el-table-column prop="name" label="反馈内容" width="120" v-slot="prop">
          <el-popover placement="top-start" title="标题" width="500" trigger="hover">
            <el-button
              size="mini"
              slot="reference"
              plain
              @click="handleDelete(prop.$index, prop.row)"
              >测试反馈6</el-button
            >
          </el-popover>
        </el-table-column>
        <el-table-column prop="name" label="回复" width="120"> </el-table-column>
        <el-table-column prop="name" label="创建时间" width="120"> </el-table-column>
        <el-table-column prop="name" label="状态" width="120"> </el-table-column>
        <el-table-column label="操作" width="170" v-slot="prop">
          <el-button size="mini" type="primary" @click="handleDelete(prop.$index, prop.row)"
            >编辑</el-button
          >
          <el-button size="mini" type="danger" @click="handleDelete(prop.$index, prop.row)"
            >删除</el-button
          >
        </el-table-column>
      </el-table>
    </el-card>
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="currentPage4"
      :hide-on-single-page="value"
      :page-sizes="[100, 200, 300, 400]"
      :page-size="100"
      layout="total, sizes, prev, pager, next, jumper"
      :total="400"
    >
    </el-pagination>
  </div>
</template>

<script>
export default {
  name: 'Comment',
  data() {
    return {
      query: {
        name: '',
        list: [],
      },
      form: {
        region: '',
      },
      options: [
        {
          value: '选项1',
          label: '已开启',
        },
        {
          value: '选项2',
          label: '已完成',
        },
        {
          value: '选项3',
          label: '进行中',
        },
        {
          value: '选项4',
          label: '已拒绝',
        },
      ],
      value: '',
      tableData: [
        {
          date: '1',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄',
        },
        {
          date: '2',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄',
        },
      ],
    };
  },
};
</script>

<style lang="less" scoped>
.el-input {
  margin: 0 5px;
  font-size: 10px;
  .el-input--medium {
    font-size: 10px;
  }
}
.el-button--small {
  margin: 0 5px;
}
</style>
